package com.tjetc.service;

import com.tjetc.domain.User;
import com.tjetc.vo.Result;

public interface UserService{


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    Result login(String phone);

    Result verifyCode(String phone, String code);

    Result register(String phone);

    Result registerSave(String phone);

    Result shiming(User user);

    Result getPatients(String phone);

    Result selUserByPhone(String phone);

    Result SelNameAndIdCardById(Integer id);

    Result findUserByPhone(String phone);
    Result findAllPatients(String phone,String input);

    Result SelphoneById(Integer id);

    Result UpdatephoneById(Integer id, String phone);

    Result updateSendMsg(String phone);

    Result updatePhone(String oldPhone, String newPhone, String code);
}
